package printer;

public class Test02 {

	public static void print(Printer[] printers) {
		for (Printer printer : printers) {
			printer.print();
		}
	}
	public static void main(String[] args) {
		Printer dot = new DotMatrixPrinter();
		Printer lnk = new InkpetPringter();
		Printer las = new LaserPrinter();
		print(new Printer[] {dot,lnk,las});
	}

}
